Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json stringify object measurements #1036

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lalten
Copy link
Contributor

@lalten lalten commented Sep 16, 2022

This change will e.g. make the values of typing.NamedTuples visible in the Web UI. Before this change they were displayed as [object Object]. I believe the measurements are guaranteed to be json-serializable because they are coming in via the websocket transport, which uses json already.

In the second commit, I modify the web ui to "pretty-print" the values as well so e.g. dictionaries are not all on one line anymore. See screenshot:
image


This change is Reviewable

@dbhatman
Copy link
Collaborator

Hey you mentioned an older commit, what commit are you using to build and test this out? We can consider rolling the web gui backwards to that point if its really necessary.

I hesitate to take this and #1035 until the changes (as in the web_gui with and without the changes) can be built at current master.

@lalten
Copy link
Contributor Author

lalten commented Sep 20, 2022

That would have been 341aa86 I believe

This was referenced Sep 20, 2022
@lalten
Copy link
Contributor Author

lalten commented Oct 11, 2022

@glados-verma @dbhatman Now that the web gui is buildable again it would be great if you could consider this one as well.

@lalten lalten force-pushed the laurenz/json-stringify-measurements branch from af8ec0e to a8fa970 Compare October 11, 2022 20:09
glados-verma
glados-verma previously approved these changes Oct 12, 2022
This change will e.g. make the values of `typing.NamedTuple`s visible in the Web UI. Before this change they were displayed as `[object Object]`.
I believe the measurements are guaranteed to be json-serializable because they are coming in via the websocket transport, which uses json already.
@lalten lalten force-pushed the laurenz/json-stringify-measurements branch from dd8798e to ce7387c Compare October 13, 2022 12:49
@lalten lalten requested a review from glados-verma October 13, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants